#include "cTexture.h"

cTexture::cTexture()
{
	//Initializes the fileName elements to NULL
	for(int index = 0; index < 20; index++)
	{
		m_fileName[index] = '\0';
	}
}

cTexture::cTexture(char *fileName)
{
	//Copy the string parameter into the class data member
	strcpy(m_fileName, fileName);

	//Create the texture object to be used within the graphics class
	HR(D3DXCreateTextureFromFile(g_pD3DDevice,
								 m_fileName,
								 &m_pTexture));
}

cTexture::~cTexture()
{
	//Releases the information contained inside the LPDIRECT3DTEXTURE9
	SAFE_RELEASE(m_pTexture);
}

